package com.easefun.polyv.livedemo;

import androidx.multidex.MultiDexApplication;
import com.alibaba.android.arouter.launcher.ARouter;
import com.easefun.polyv.livecommon.module.config.PLVLiveSDKConfig;
/**
 * date: 2020-04-29
 * author: hwj
 * description:
 */
public class PLVApp extends MultiDexApplication {
    @Override
    public void onCreate() {
        super.onCreate();
        PLVLiveSDKConfig.init(
                new PLVLiveSDKConfig.Parameter(this)
                        .isOpenDebugLog(true)
                        .isEnableHttpDns(false)
        );
//        CrashReport.initCrashReport(getApplicationContext(), "67f1cc7fa9", true);
        ARouter.init(this);
    }
    @Override
    public void onTerminate() {
        super.onTerminate();
        ARouter.getInstance().destroy();
    }
}
